<<<<<<< HEAD
﻿// See https://aka.ms/new-console-template for more information
using System.Text;
using VirginiaCode.Models;

namespace Code
{
    class Program
    {
        /// <summary>
        /// 维吉尼亚加密和解密
        /// </summary>
        static void Main(string[]args)
        {
            //输入一段字母明文plain和密钥key
            Console.WriteLine("请输入明文");
            String plain = Console.ReadLine();
            Console.WriteLine("请输入小写密钥");
            String key = Console.ReadLine();
            //赋值属性，实现加密
            Mycode mycode = new Mycode();
            mycode.Plaint = plain;
            mycode.Key = key;
            mycode.Encode();
            //输出密文
            Console.WriteLine($"维吉尼亚加密后的密文：{mycode.Cipher}");
        }
    }
=======
﻿// See https://aka.ms/new-console-template for more information
using System.Text;
using VirginiaCode.Models;

namespace Code
{
    class Program
    {
        /// <summary>
        /// 维吉尼亚加密和解密
        /// </summary>
        static void Main(string[]args)
        {
            //输入一段字母明文plain和密钥key
            Console.WriteLine("请输入明文");
            String plain = Console.ReadLine();
            Console.WriteLine("请输入小写密钥");
            String key = Console.ReadLine();
            //赋值属性，实现加密
            Mycode mycode = new Mycode();
            mycode.Plaint = plain;
            mycode.Key = key;
            mycode.Encode();
            //输出密文
            Console.WriteLine($"维吉尼亚加密后的密文：{mycode.Cipher}");
        }
    }
>>>>>>> abf2299ac893eeecc9e619b9bef12658ab530ca4
}